[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+----------+###############################################################
#+-| SQUISH() |-----------------------------------------------------------+###
#| +----------+ Removes all spaces and tabs / converts upper to lowercase |###
#+------------------------------------------------------------------------+###
##############################################################################
##############################################################################
#+--| Summary |----------------+##############################################
#| #INCLUDE string.hdr |##############################################
#+-----------------------------+##############################################
##############################################################################
##############################################################################
#+--| Syntax |----------------------------------+#############################
#| FUNCTION CHAR squish PROTOTYPE |#############################
#| PARAMETERS CONST CHAR source_string |#############################
#+----------------------------------------------+#############################
##############################################################################
##############################################################################
###########+---| Description |-----------------------------------+############
###########| The squish() function removes all spaces and tabs |############
###########| from a character string and converts all upper case |############
###########| characters to lower case. |############
###########+-----------------------------------------------------+############
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| |#########
#########| ? squish("Gretchen Perkic") && gretchenperkic |#########
#########| ? squish("gretchen perkic") && gretchenperkic |#########
#########| ? squish("GRETCHEN Perkic") && gretchenperkic |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Index on squish to combine first/lastname |#########
#########| * without regard to the spacing of the names. |#########
#########| |#########
#########| INDEXDEF |#########
#########| CHAR(30) iname squish(n->first+n->last) |#########
#########| ENDDEF |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
lower()
ltrim()
rtrim()
upper()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson